<!doctype html>
<html>
<head>
    <%@ page language="java" pageEncoding="UTF-8"%>
    <%@ include file="/WEB-INF/views-jsp/include/taglib/taglib.jsp" %>
    <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <%@ include file="/WEB-INF/views-jsp/include/link/link.jsp" %>
    <%@ include file="/WEB-INF/views-jsp/include/script/script.jsp" %>
    <script type="text/javascript" src="${path}/html/js/js-jsp/us/user/userDesc.js?v=<%out.print(Math.random());%>"></script>
    <script type="text/javascript" src="${path}/html/js/js-jsp/layout-goback.js"></script>
</head>
    <body height="100%">
        <div class="place">
            <span>当前位置：</span>
            <ul class="placeul">
                <li><a url="${path}/user/index.do" id="userId" iconCls="${param.iconCls}" closable="true">用户管理</a></li>
                <li><a style="background: transparent; border: none">用户详情</a></li>
            </ul>
        </div>
        <div class="descBox">
            <table id=unitDesc" align="center" width="40%" >
                <tr>
                    <td colspan="2">
                        <div style="width: 120px; height: 160px; margin: 0 auto; border: 1px solid black; ">
                            <input type="hidden" id="fileId" value="${requestScope.user.commonFile.fileId}">
                            <c:if test="${requestScope.user.commonFile.fileId!=null}">
                                <img id="showImg" style="width: 120px;height: 135px"/>
                            </c:if>
                            <c:if test="${requestScope.user.commonFile.fileId==null}">
                                <img id="showImg" style="width: 120px;height: 135px" src="${path}/html/images/defaulPhoto/defaulPhoto.jpg"/>
                            </c:if>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td><span>登录名称：</span></td>
                    <td><span>${requestScope.user.loginName}</span></td>
                </tr>
                <tr>
                    <td><span>用户手机：</span></td>
                    <td><span>${requestScope.user.userPhone}</span></td>
                </tr>
                <tr>
                    <td><span>所属公司：</span></td>
                    <td><span>${requestScope.user.company.name}</span></td>
                </tr>
                <tr>
                    <td><span>所属员工：</span></td>
                    <td><span>${requestScope.user.employee.name}</span></td>
                </tr>
                <tr>
                    <td><span>最后登录IP：</span></td>
                    <td><span>${requestScope.user.loginIp} </span></td>
                </tr>
                <tr>
                    <td><span>最后登录时间：</span></td>
                    <td><span>${requestScope.user.loginDate} </span></td>
                </tr>
                <tr>
                    <td><span>登录状态：</span></td>
                    <td><span>${requestScope.user.loginStatus == 1 ? '可登录' : '已禁用'} </span></td>
                </tr>
                <tr>
                    <td><span>密码错误次数：</span></td>
                    <td><span>${requestScope.user.pwdErrCount} </span></td>
                </tr>
                <tr>
                    <td><span>禁用截止时间：</span></td>
                    <td><span><fmt:formatDate value="${requestScope.user.disabledTime}" pattern="yyyy-MM-dd"/> </span></td>
                </tr>
                <tr>
                    <td><span>备注信息：</span></td>
                    <td><span>${requestScope.user.remark}</span></td>
                </tr>
                <tr>
                    <td><span>创建者：</span></td>
                    <td><span>${requestScope.user.createBy}</span></td>
                </tr>
                <tr>
                    <td><span>创建时间：</span></td>
                    <td><span><fmt:formatDate value="${requestScope.user.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/></span></td>
                </tr>
                <tr>
                    <td><span>修改者：</span></td>
                    <td><span>${requestScope.user.updateBy}</span></td>
                </tr>
                <tr>
                    <td><span>修改时间：</span></td>
                    <td><span><fmt:formatDate value="${requestScope.user.updateDate}" pattern="yyyy-MM-dd HH:mm:ss"/></span></td>
                </tr>
            </table>
        </div>
    </body>
</html>
